package demo2;

import java.util.concurrent.Callable;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘远望
 * Date: 2025-03-17
 * Time: 13:20
 */
public class Test {
    public static void drawMap(IShape iShape){
        iShape.draw();
    }
    public static void main(String[] args) {
        //IShape iShape = new IShape();接口不能实例化
        IShape iShape1 = new Cycle();
        Cycle cycle = new Cycle();
        drawMap(iShape1);
        drawMap(cycle);
    }
}